package it.asvp.asvp_portal.web.bean;

import it.asvp.asvp_portal.asvp_util.enumerative.ReceiverOption;
import it.asvp.asvp_portal.data.entity.notification.Notification;

import java.util.Set;

public class NotificationBean {

	private Notification notification;
	private String[] receiverOptions;
	private Set<Long> receivers;
	
	public NotificationBean(){
		ReceiverOption[] ro=ReceiverOption.allReceiverOption();
		receiverOptions=new String[ro.length];
		for(int i=0;i<ro.length;i++){
			receiverOptions[i]=ro[i].getName();
		}
	}

	public Notification getNotification() {
		return notification;
	}

	public void setNotification(Notification notification) {
		this.notification = notification;
	}

	public String[] getReceiverOptions() {
		return receiverOptions;
	}

	public void setReceiverOptions(String[] receiverOptions) {
		this.receiverOptions = receiverOptions;
	}
	
	public Set<Long> getReceivers() {
		return receivers;
	}

	public void setReceivers(Set<Long> receivers) {
		this.receivers = receivers;
	}
	
}
